Dynomotion

Group: DynoMotion Message: 5833 From: himykabibble Date: 10/21/2012
Subject: M6 Handler
Tom,

I've now got my toolchanger working nicely, so took a stab at integrating it into KMotion. But, I'm having a problem. I added an M6 handler, using thread 5, and Var 13. The program is running (as evidenced by printfs), but I don't seem to be getting the tool number - I always see zero in the Var. Shouldn't this be passed through the specified Var, or does it come from somewhere else?

Regards,
Ray L.
Group: DynoMotion Message: 5834 From: Tom Kerekes Date: 10/21/2012
Subject: Re: M6 Handler
Hi Ray,

Yes it should be saved as a 32-bit integer.  How are you accessing it from the KFLOP C side?

The other possibility is that it is passing the "slot" number not the "tool" number.

Regards
TK

Group: DynoMotion Message: 5835 From: himykabibble Date: 10/21/2012
Subject: Re: M6 Handler
Tom,

Ah, OK. I thought the M-code Vars were passed as floats. Easy enough to fix.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>
> Yes it should be saved as a 32-bit integer.  How are you accessing it from the KFLOP C side?
>
> The other possibility is that it is passing the "slot" number not the "tool" number.
>
> Regards
> TK
>
>
>
> ________________________________
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, October 21, 2012 4:51 PM
> Subject: [DynoMotion] M6 Handler
>
>
>  
> Tom,
>
> I've now got my toolchanger working nicely, so took a stab at integrating it into KMotion. But, I'm having a problem. I added an M6 handler, using thread 5, and Var 13. The program is running (as evidenced by printfs), but I don't seem to be getting the tool number - I always see zero in the Var. Shouldn't this be passed through the specified Var, or does it come from somewhere else?
>
> Regards,
> Ray L.
>